<template>
  <div>
    <p v-for="(item,index) in list" :key="index">{{item}}</p>
  </div>
</template>

<script>
  export default {
    head: {
      title: 'Home page',
      meta: [{
        hid: 'description',
        name: 'description',
        content: 'Home page description'
      }],
    },
    name: "meat",
    data() {
      return {

      }
    },
    async asyncData(ctx) {
      console.log(ctx.route)
      let response = await fetch("http://localhost:3005/test/");
      return {
        list: await response.json()
      }
    }
  }

</script>

<style>

</style>
